import React from 'react'
import { useParams } from 'react-router-dom'
import H5Promotion from '../H5Promotion/H5Promotion'
import './OpenPlatform.less'
import { DEFAULT_NAME } from '@/constants'

function OpenPlatform() {
  const { id } = useParams()

  return (
    <div className='open_platform'>
      <div className='open_header'>
        <div className='open_header_wrapper'>
          <h2 className='open_header_title'>{DEFAULT_NAME}数据开放平台</h2>
          <p className='open_header_desc'>{DEFAULT_NAME}运营投放数据汇总展示平台</p>
        </div>
      </div>

      <div className='open_content'>
        <H5Promotion pageType='open' pageId={id} />
      </div>
    </div>
  )
}

export default OpenPlatform
